package com.cl.util;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

public class EntityNameReplaceUtil {
	private static Map<String, String> entityMap;

	static {
		entityMap = new HashMap<String, String>();
		entityMap.put("THESISCATALOG", "THESIS_CATALOG");
		entityMap.put("CEGIFT", "CE_GIFT");
		entityMap.put("CEATTACHMENT", "CE_ATTACHMENT");
	}

	public static String replaceName(String entity) {
		if (entityMap != null && entityMap.containsKey(entity)) {
			entity = entityMap.get(entity);
		}
		return entity;
	}

}
